package com.naiterui.ehp.bs.recommend.bean;


import static javax.persistence.GenerationType.IDENTITY;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Version;

import lombok.Data;

@Data
@Table(name = "recom_audit_config")
@Entity
public class RecomAuditConfig implements Serializable {


    /**
     * 审核类型-系统自动
     */
    public static final Integer AUDIT_TYPE_AUTO = 1;
    /**
     * 审核类型-人工
     */
    public static final Integer AUDIT_TYPE_MANUAL = 2;

    /**
     * 主键
     */
    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id", unique = true, nullable = false)
    private Long id;

    /**
     * 审核类型(1:系统审核,2:人工审核)
     */
    @Column(name = "audit_type")
    private Integer auditType;

    /**
     * 操作备注
     */
    @Column(name = "remark")
    private String remark;

    /**
     * 创建时间
     */
    @Column(name = "created_at")
    private Date createdAt;

    /**
     * 创建人
     */
    @Column(name = "created_by")
    private String createdBy;

    /**
     * 乐观锁
     */
    @Version
    private Integer version;

}
